package com.jdbc;

import java.math.BigDecimal;

public class Pet {
    private int id;
    private int owner_id;
    private String nickname;
    private String pet_type;
    private int age;
    private String gender;
    private BigDecimal price;

    public Pet() {
    }

    public Pet(int id, int owner_id, String nickname, String pet_type, int age, String gender, BigDecimal price) {
        this.id = id;
        this.owner_id = owner_id;
        this.nickname = nickname;
        this.pet_type = pet_type;
        this.age = age;
        this.gender = gender;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOwner_id() {
        return owner_id;
    }

    public void setOwner_id(int owner_id) {
        this.owner_id = owner_id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPet_type() {
        return pet_type;
    }

    public void setPet_type(String pet_type) {
        this.pet_type = pet_type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Pets{" +
                "id=" + id +
                ", 主人id=" + owner_id +
                ", 宠物名字='" + nickname + '\'' +
                ", 宠物类型='" + pet_type + '\'' +
                ", 年龄=" + age +
                ", 性别='" + gender + '\'' +
                ", 价格=" + price +
                '}';
    }
}
